PATHMac OS 8 and 9 Developer Documentation > Interapplication Communication > AppleScript for Scripters >

AppleScript Language Guide

   

Property

The Property reference form specifies a property of an application object, a script object, a record, or a date.

SYNTAX
propertyLabel

where

propertyLabel is the label for the property.

EXAMPLES

The following example is a reference to the Name property of the front window. It lists the label for the property ( name ) and its container ( front window ).

name of front window

The following example is a reference to the UnitPrice property of a record. A record is an AppleScript value that consists of a collection of properties. For more information about records, see Values and Constants. The label of the property is UnitPrice and the container is the record.

UnitPrice of {Product:"Super Snack", UnitPrice:0.85, Quantity:10}
NOTES

Property labels are listed in object class definitions in application dictionaries. Because a property's label is unique among the properties of an object, the label is all you need to distinguish a property from all the other properties of the object. Unlike other reference forms, there is no need to specify the class of the object.


© 1999 Apple Computer, Inc. – (Last Updated 21 May 99)